<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<html>
	<head>
		<title>添加子菜单</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="${path}/css/backsys/ctx.css">
		<script type="text/javascript" src="${path}/js/jquery.js"></script>
	</head>
	<body>
		<div class="ctx">
			<form action="${path}/backsystree!saveTreeChild.action" method="post">
				<table class="ow" width="70%">
					<tr>
						<td height="30" width="45%" align="right">树状根名称：</td>
						<td>${tree[0].btm_Name}</td>
					</tr>
					<tr>
						<td height="30" align="right">所属目录：</td>
						<td>
							<select name="tree.btm_Id">
								<c:forEach var="t" items="${tree}">
									<c:if test="${t.btm_IsLeaf=='no'}">
										<option value="${t.btm_Id}">${t.btm_Name}</option>
									</c:if>
								</c:forEach>
							</select>
						</td>
					</tr>
					<tr>
						<td height="30" align="right">子目录名称：</td>
						<td><input type="text" name="tree.btm_Name" size="30"/></td>
					</tr>
					<tr>
						<td align="center" colspan="2">
							<input type="hidden" name="treeform.id" value="${tree[0].btm_Id}" />
							<input type="hidden" name="tree.btm_sort" value="0" />
							<input type="hidden" name="tree.btm_IsLeaf" value="no" />
							<input type="hidden" name="tree.btm_IsRoot" value="no" />
							<input type="submit" class="inputButton"  value="创建子目录" />
						</td>
					</tr>
				</table>
			</form>
			<br/>
			<form action="${path}/backsystree!saveTreeChild.action" method="post">
				<table class="ow" width="70%">
					<tr>
						<td height="30" width="45%" align="right">树状根名称：</td>
						<td>${tree[0].btm_Name}</td>
					</tr>
					<tr>
						<td height="30" align="right">所属目录：</td>
						<td>
							<select name="tree.btm_Id">
								<c:forEach var="t" items="${tree}">
									<c:if test="${t.btm_IsLeaf=='no'}">
										<option value="${t.btm_Id}">${t.btm_Name}</option>
									</c:if>
								</c:forEach>
							</select>
						</td>
					</tr>
					<tr>
						<td height="30" align="right">子菜单名称：</td>
						<td><input type="text" name="tree.btm_Name" size="30"/></td>
					</tr>
					<tr>
						<td height="30" align="right">子菜单URL：</td>
						<td><input type="text" name="tree.btm_Url" size="30"/></td>
					</tr>
					<tr>
						<td align="center" colspan="2">
							<input type="hidden" name="treeform.id" value="${tree[0].btm_Id}" />
							<input type="hidden" name="tree.btm_sort" value="0" />
							<input type="hidden" name="tree.btm_IsLeaf" value="yes" />
							<input type="hidden" name="tree.btm_IsRoot" value="no" />
							<input type="submit" class="inputButton"  value="创建子菜单" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
